/**
  ******************************************************************************
  * File Name          : ctrl_shl.c
  * Description        : Code for data process applications
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "tskcfg.h"
#include "bsp.h"
#include "spiflash.h"
#include "collector.h"
#include "ctrl_common.h"

volatile uint8_t Ctrl_BjTrigger = 0;

void Ctrl_zd(void)
{
  if(Ctrl_ParaTD.zdtd == 1)
  {
    zd_act = 1;
  }
  else
  {
    zd_act = 0;
  }
}

void Ctrl_bj(int16_t temper)
{
  if(((temper >= Ctrl_ParaJT.bjgw) || (temper < Ctrl_ParaJT.bjdw) || (Ctrl_BjTrigger == 1)) && (Ctrl_ParaTD.bjtd == 1))
  {
    bj_act = 1;
  }
  else
  {
    bj_act = 0;
  }
}
